home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
C64
/
A-Monthly Disks
/
(c)aas.d64
/
act 2
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2007-02-04
|
5KB
|
157 lines
100 REM KANGAROOS(ACT II) BY DENNIS DUNK
110 IF A=0 THEN A=1:LOAD"THE GREAT ESCAPE",8,1
120 SYS 37120
130 POKE53280,0:POKE53281,5
140 PRINT"[147][146]";
150 FOR I=1TO24:PRINT" [146]";:NEXT
160 P=2040:V=53248:REM P=POINTER V=VIC
170 POKEV+23,4:POKEV+29,4:POKEV+16,1:POKEV+0,9:POKEV+1,221
180 POKEV+16,1:POKEV+2,72:POKEV+3,221
190 POKEV+41,12:POKEV+42,4:POKEV+43,7:POKEV+45,1
200 POKEP+3,180:POKEP+4,180:POKEP+6,163
210 POKEV+21,95:REM TURN ON SPRITES # 0-4 & 6
220 Y=199:X=0:REM BIG ROO
230 POKEP+2,149
240 FORK=XTOX+10:POKEV+4,K:POKEV+6,K+42:POKEV+8,K+18:POKEV+12,K+30
250 FOR D=1TO10:NEXT D:NEXTK:X=X+10
260 C=0:REM UP
270 FORK=XTOX+13:POKEV+4,K:POKEV+6,K+18:POKEV+8,K+42:POKEV+12,K+30
280 GOSUB1630:IF X=255 THEN X=0:POKEV+16,79
290 Y=Y-1:POKEV+5,Y:POKEV+7,Y-30:POKEV+9,Y-30:POKEV+13,Y-8:NEXTK:X=X+13
300 REM DOWN
310 FORK=XTOX+13:POKEV+4,K:POKEV+6,K+18:POKEV+8,K+42:POKEV+12,K+30
320 GOSUB1630:IF X=255 THEN X=0:POKEV+16,79
330 Y=Y+1:POKEV+5,Y:POKEV+7,Y-31:POKEV+9,Y-31:POKEV+13,Y-9:NEXTK:X=X+13
340 C=C+1:GOSUB1640
350 IF C<7 THEN 270
360 B3=X+18
370 FORK=XTOX+20:POKEV+4,K:POKEV+6,K+42:POKEV+8,K+18:POKEV+12,K+30
380 POKEV+42,7:POKEV+43,4:REM *BALLOONS TRADED POSITIONS-NO EXPLANATION
390 GOSUB1620:NEXTK:X=X+20
400 KB=K+18:BX=X
410 SN=236:C=0:REM TURN TO GET BALLOON
420 SN=SN+1:POKEP+0,SN:C=C+1:GOSUB1640
430 IF C<7 THEN 420
440 POKEP+0,155:GOSUB1640:X=9
450 FORK=XTOX+5:POKEV+0,K:NEXTK
460 FORK=XTOX-4STEP-1:POKEV+0,K:GOSUB1620:Y=Y-1:POKEV+1,Y:NEXTK:REM UP
470 X=X-4:POKEV+21,223
480 C=0:SN=139
490 SN=SN+1:POKEP+6,SN:POKEV+8,(PEEK(V+8)+3):C=C+1:GOSUB1630
500 POKEV+12,(PEEK(V+12)-1)
510 IF C<3 THEN 490
520 POKEP+6,176
530 POKEV+16,1+8+128:POKEV+6,0
540 POKEV+46,1:POKEP+7,176:POKEV+14,0:POKEV+15,12:POKEV+21,223:REM SPRITE#7
550 FORK=XTOX+8:POKEV+0,K+1:POKEV+6,K-5:POKEV+14,K-5:GOSUB1630:REM DOWN
560 Y=Y+1:POKEV+1,Y:POKEV+7,Y-31:POKEV+15,Y-9:NEXTK
570 X=X+8:B3=PEEK(V+8)
580 SN=255:C=0:REM TURN BACK W/BALLOON
590 POKEV+16,137:POKEV+13,(PEEK(V+13)+6):POKEV+9,(PEEK(V+9)+6)
600 SN=SN-1:POKEP+2,SN:POKEV+8,B3:POKEV+12,B3:C=C+1:B3=B3-3:GOSUB1640
610 IF SN>245 THEN 600
620 POKEP+2,155
630 B3=B3+2:POKEV+8,B3:POKEV+12,B3
640 POKEP+2,155:GOSUB1640
650 REM:POKEV+13,(PEEK(V+13)+2):POKEV+9,(PEEK(V+9)+2)
660 B3=B3-1:POKEV+12,B3-1:POKEV+8,B3-1
670 FORK=XTOX+1:POKEV+0,K+3:POKEV+6,K-5:POKEV+14,K-5:REM UP UP & AWAY
680 GOSUB1630
690 Y=Y-3:POKEV+1,Y:POKEV+7,Y-31:POKEV+15,Y-9:NEXTK:X=X+1
700 IF Y>36 THEN 670
710 POKEV+21,86
720 C=0:X=PEEK(V+4):Y=PEEK(V+5):REM UP
730 FORK=XTOX-13STEP-1:POKEV+4,K:POKEV+8,K-3:POKEV+12,K-3:GOSUB1630
740 Y=Y-1:POKEV+5,Y:POKEV+9,Y-28:POKEV+13,Y-6:NEXTK:X=X-13
750 REM DOWN
760 FORK=XTOX-13STEP-1:POKEV+4,K:POKEV+8,K-3:POKEV+12,K-3:GOSUB1630
770 Y=Y+1:POKEV+5,Y:POKEV+9,Y-28:POKEV+13,Y-6:NEXTK:X=X-13
780 C=C+1:GOSUB1640
790 IF C<4 THEN 730
800 Y=Y+1:POKEV+5,Y:POKEV+9,Y-29:POKEV+13,Y-7
810 SN=255:C=0:REM TURN TO GET BALLOON
820 SN=SN-1:POKEP+1,SN:C=C+1:GOSUB1640
830 IF C<3 THEN 820
840 POKEP+1,149:GOSUB1640
850 X=72
860 FORK=XTOX+20:POKEV+2,K:GOSUB1630:NEXTK:X=X+20
870 FORK=XTOX+4:POKEV+2,K:GOSUB1630:Y=Y-1:POKEV+3,Y:NEXTK:X=X+4:REM UP
880 C=0
890 FORK=XTOX-8STEP-1:POKEV+2,K-6:POKEV+8,K:POKEV+12,K:GOSUB1630:REM DOWN
900 Y=Y+1:POKEV+3,Y:POKEV+9,Y-31:POKEV+13,Y-9:NEXTK
910 SN=155:C=0
920 SN=SN-1:POKEP+2,SN:GOSUB1640:C=C+1
930 IF C<5 THEN 920
940 POKEP+2,216:GOSUB1640
950 POKEP+2,215:GOSUB1640
960 POKEP+2,255:GOSUB1640
970 SN=211:C=0
980 SN=SN-1:POKEP+2,SN:GOSUB1640:C=C+1
990 IF C<3 THEN 980
1000 X=PEEK(V+2)
1010 FORK=XTOX+1:POKEV+2,K:POKEV+8,K+7:POKEV+12,K+7:REM UP UP & AWAY
1020 GOSUB1630
1030 Y=Y-3:POKEV+3,Y:POKEV+9,Y-31:POKEV+13,Y-9:NEXTK:X=X+2
1040 IF Y>36 THEN 1010
1050 POKE V+21,4
1060 X=PEEK(V+4):Y=PEEK(V+5):REM BIG ROO ONLY
1070 FORK=XTOX+20:POKEV+4,K:Y=Y-1:POKEV+5,Y:GOSUB1630:NEXTK:X=X+20
1080 FORK=XTOX+20:POKEV+4,K:Y=Y+1:POKEV+5,Y:GOSUB1630:NEXTK:X=X+20
1090 SN=199:C=0
1100 SN=SN+1:POKEP+2,SN:C=C+1:GOSUB1640
1110 IF C<7 THEN 1100
1120 SN=145:C=0
1130 SN=SN+1:POKEP+2,SN:C=C+1:GOSUB1640
1140 IF C<4 THEN 1130
1150 SN=150:C=0
1160 SN=SN-1:POKEP+2,SN:C=C+1:GOSUB1640
1170 IF C<7 THEN 1160
1180 SN=207:C=0
1190 SN=SN+1:POKEP+2,SN:C=C+1:GOSUB1640
1200 IF C<3 THEN 1190
1210 POKEP+2,215:C=C+1:GOSUB1640
1220 POKEP+2,216:C=C+1:GOSUB1640
1230 SN=149:C=0
1240 SN=SN+1:POKEP+2,SN:C=C+1:GOSUB1640
1250 IF C<7 THEN 1240
1260 SN=157:C=0
1270 SN=SN-1:POKEP+2,SN:C=C+1:GOSUB1640
1280 IF C<7 THEN 1270
1290 C=0:X=PEEK(V+4):Y=PEEK(V+5):REM UP
1300 FORK=XTOX-13STEP-1:POKEV+4,K:GOSUB1630
1310 Y=Y-1:POKEV+5,Y:NEXTK:X=X-13
1320 FORK=XTOX-13STEP-1:POKEV+4,K:GOSUB1630
1330 Y=Y+1:POKEV+5,Y:NEXTK:X=X-13
1340 C=C+1:GOSUB1640
1350 IF C<5 THEN 1300
1360 X=PEEK(V+4)
1370 FORK=XTO0STEP-1:POKEV+4,K:GOSUB1630:NEXTK
1380 POKE V+21,0:POKEV+16,0:GOSUB1640:GOSUB1640
1390 P=2040:V=53248:REM P=POINTER V=VIC
1400 POKEV+41,12:POKEV+42,8:POKEV+43,3:POKEV+44,7:POKEV+14,1:REM COLORS
1410 POKEV+4,0:POKEV+6,18:POKEV+8,30:POKEV+10,42:POKEV+14,31:REM X
1420 POKEV+5,200:POKEV+7,174:POKEV+9,174:POKEV+11,174:POKEV+15,195:REM Y
1430 POKEP+2,146:POKEP+3,180:POKEP+4,180:POKEP+5,180:POKEP+7,164:REM SN
1440 POKEV+21,188:REM TURN ON SPRITES # 2-5 & 7
1450 FORK=1TO40:POKEV+4,K:POKEV+6,K+18:POKEV+8,K+30:POKEV+10,K+42:POKEV+14,K+31
1460 GOSUB1630:NEXTK
1470 FORK=41TO212:POKEV+4,K:POKEV+6,K+18:POKEV+8,K+30:POKEV+10,K+42
1480 POKEV+14,K+31:J=K-40
1490 POKEV+5,200-J:POKEV+7,174-J:POKEV+9,174-J:POKEV+11,174-J:POKEV+15,196-J
1500 GOSUB1630:NEXTK
1510 POKEV+21,0
1520 POKE53280,0:POKE53281,0:POKE646,1
1530 PRINT"[147] THE GREAT ESCAPE WAS MADE."
1540 PRINT" TIE YOUR KANGAROOS DOWN, MATE!!"
1550 GOSUB1640:GOSUB1640:GOSUB1640
1560 PRINT"[158] WOULD YOU LIKE TO SEE THE SHOW AGAIN ?"
1570 GET A$:IFA$=""THEN1570
1580 IF A$="Y" THEN PRINT"OK":GOTO1600
1590 PRINT"[147] RESTARTING COMPUTER":GOSUB1640:SYS64738
1600 F$="KANGAROOS":PRINT"[147] LOAD"+CHR$(34)+F$+CHR$(34)+",8": PRINT "RUN"
1610 A=1:POKE198,4: POKE631,19: POKE632,13: POKE633,13: POKE634,13:END
1620 FORD=1TO10:NEXTD:RETURN
1630 FORD=1TO40:NEXTD:RETURN
1640 FORD=1TO100:NEXTD:RETURN
1650 POKEV+16,1:POKEV+0,9:POKEV+1,229